home *** CD-ROM | disk | FTP | other *** search
/ Learn Microsoft Visual Basic 6.0 Now / Learn Microsoft Visual Basic 6.0 Now (Microsoft Press)(X03-58607)(1998).ISO / media / chap07 / b07w005.cc2 < prev    next >
Text File  |  1998-06-07  |  999b  |  23 lines

  1. 0, The purpose of these Printer statements 
  2. 2, is quite straightforward. The first line 
  3. 5, initializes the Printer object and 
  4. 7, prepares it to receive text. The next three 
  5. 10, lines set the FontName, FontSize, and 
  6. 13, FontBold properties of the Printer object 
  7. 15, to formatting settings supported by the 
  8. 18, default printer. The routine specifies 
  9. 20, the Arial font, a scaleable True Type 
  10. 23, font that is included automatically with 
  11. 25, Windows.The fifth statement uses the Print 
  12. 29, method to send the word stored in the 
  13. 30, Label1.Caption property to the printer. 
  14. 34, It prints the text in bold on the first 
  15. 36, line of the page and then instructs the 
  16. 38, printer to move to the next line. The 
  17. 42, sixth line returns the font style to 
  18. 44, Normal, and the seventh line prints the 
  19. 46, contents of the form's text box object. 
  20. 50, Finally, the EndDoc method completes the print 
  21. 53, job and sends the entire document to 
  22. 55, the Windows print spooler.
  23. 56, END